<?php

namespace app\purchase\validate;

class Client extends \ShopValidate
{
    protected $rule = [
       'client_name' => 'require',
        'level_id' => 'require',
        'warehouse_id' => 'require',
        'department_id' => 'require',
       // 'parent_id' => 'require|checkExists',
    ];

    protected $message = [
       // 'cate_name.require' => '分类名称必须',
       // 'cate_name.max' => '分类名称长度不能超过30个字符',
       // 'parent_id.checkExists' => '指定的父级分类不存在',
    ];

    protected $field = [
       // 'cate_name' => '分类名称',
       // 'parent_id' => '父级分类ID',
    ];

    protected $scene = [
       // 'save' => ['parent_id'],
    ];

}
